package org.wei.bean.manager;

public class TestEntityFactory {
	private static TestEntityFactory instance;
	private int i;

	private TestEntityFactory() {

	}

	public TestEntity createTestEntity() {
		return new TestEntity();
	}

	public static TestEntityFactory getInstance(int i) {
		if (instance == null) {
			instance = new TestEntityFactory();
			instance.i = i;
		}
		return instance;
	}

	public int getI() {
		return i;
	}

	public void setI(int i) {
		this.i = i;
	}
}
